package com.cems.controller.shequ;

import com.cems.pojo.Shequtiezi;
import com.cems.service.ShequService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Controller
public class ShequController {

    @Autowired
    ShequService shequService;


    @RequestMapping("toshequ")
    public  String toshequ(HttpServletRequest request){
        List<Shequtiezi> tieziList=shequService.findTieziList();
        request.setAttribute("tieziList",tieziList);

        return "font/shequ/shequlist";
    }

}
